home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / Event / Sources / Include / EventFrm.h < prev    next >
Encoding:
Text File  |  1995-10-10  |  1.3 KB  |  44 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  3.  
  4. #ifndef _EVENTFRAME_
  5. #define _EVENTFRAME_
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. // ----- OS Layer -----
  14. #ifndef FWEVENT_H
  15. #include "FWEvent.h"        // FW_PlatformEventTime, FW_CMouseEvent
  16. #endif
  17.  
  18. //=======================================================================
  19. class FW_CLASS_ATTR CEventPart;
  20.  
  21. //=======================================================================
  22. class FW_CLASS_ATTR CEventFrame : public FW_CFrame {
  23. public:
  24.                         CEventFrame(Environment* ev, 
  25.                                     ODFrame* odFrame, 
  26.                                     FW_CPresentation* presentation, 
  27.                                     CEventPart* eventPart);
  28.     virtual             ~CEventFrame();
  29. protected:
  30. // overrides
  31.     virtual void        Draw(Environment *ev, 
  32.                              ODFacet* odFacet, 
  33.                              ODShape* invalidShape);
  34.     virtual FW_Boolean    DoMouseDown(Environment* ev, 
  35.                                     const FW_CMouseEvent& theMouseEvent);
  36.     virtual FW_Boolean    DoCharKey(Environment* ev, 
  37.                             const FW_CCharKeyEvent& theCharKeyEvent);
  38.     virtual FW_Boolean     DoVirtualKey(Environment* ev, 
  39.                           const FW_CVirtualKeyEvent& theVirtualKeyEvent);
  40. };
  41.  
  42. //=======================================================================
  43. #endif
  44.